<?php
/*
 * @Author: your name
 * @Date: 2019-12-07 15:44:49
 * @LastEditTime : 2020-01-07 19:28:25
 * @LastEditors  : Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /php/application/api/controller/Login.php
 */
namespace app\api\controller;

use app\api\service;
class Login extends Base
{
    /**
     * @name: 客户端登陆
     * @Param: 
     * @Description: 
     * @Author: foo
     * @Date: 2019-12-07 13:51:40
     */
    function login ($module)
    {
        $inputData = $this->filterInput();

//        $inputData['hostkey'] = '9c0ad3e48cb83d6ea342ca656fbf2b00';
//        $inputData['version'] = '3.0';
//        $inputData = array (
//            'hostkey' => '9c0ad3e48cb83d6ea342ca656fbf2b00',
//            'hostname' => 'localhost.localdomain',
//            'ip' =>
//                array (
//                    0 => '192.168.25.201',
//                ),
//            'version' => '3.0.0.0',
//        );

        $Login = new service\Login();
        $data = $Login->requestData($inputData, $module);
        
        $this->jsonOutPut($data);

    }
}